package com.ruoyi.mespro.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 整经数据汇总对象 shaft_warp
 *
 * @author Jun Xiang
 * @date 2022-06-07
 */
public class ShaftWarp extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 唯一索引 */
    private Long id;

    /** 机台编号 */
    @Excel(name = "机台编号")
    private String maccode;

    /** 品种编号 */
    @Excel(name = "品种编号")
    private String pdtcode;

    /** 轴号 */
    @Excel(name = "轴号")
    private String shaftcode;

    @Excel(name = "产地")
    private String productArea;

    @Excel(name = "批次")
    private String batchNo;

    @Excel(name = "色号")
    private String colorNo;

    /** 订单编号 */
    @Excel(name = "订单编号")
    private String ordercode;

    /** 品种规格 */
    @Excel(name = "品种规格")
    private String construction;

    /** 班次日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "班次日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date shiftdate;

    /** 班次类别 */
    @Excel(name = "班次类别")
    private Integer shifttype;

    /** 是否跨班次 */
    @Excel(name = "是否跨班次")
    private Integer iscrossshift;

    /** 上轴时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "上轴时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date sjtime;

    /** 了机时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "了机时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date ljtime;

    /** 轴状态 */
    @Excel(name = "轴状态")
    private Integer beamstatus;

    /** 操作员 */
    @Excel(name = "操作员")
    private String opworker;

    /** 整经长度 */
    @Excel(name = "整经长度")
    private Integer curlength;

    /** 整经长度 */
    @Excel(name = "设定速度")
    private Integer setspeed;

    /** 断头数 */
    @Excel(name = "平均速度")
    private Double avgSpeed;

    /** 设定长度 */
    @Excel(name = "设定长度")
    private Integer setlength;

    /** 断头数 */
    @Excel(name = "断头数")
    private Double breaknum;

    /** 断头率 */
    @Excel(name = "断头率")
    private Integer breakrate;


    /** 百根万米断头率 */
    @Excel(name = "断头率")
    private Double bwbreakrate;

    /** 卷绕密度 */
    @Excel(name = "卷绕密度")
    private Integer density;

    /** 压纱力 */
    @Excel(name = "压纱力")
    private Integer pressurea;

    /** 纱支 */
    @Excel(name = "纱支")
    private Integer yarncount;

    /** 张力片打开时间 */
    @Excel(name = "张力片打开时间")
    private Integer ganopentime;

    /** 张力杆打开时间 */
    @Excel(name = "张力杆打开时间")
    private Integer pianopentime;

    /** 张力杆位置 */
    @Excel(name = "张力杆位置")
    private Integer ganlocation;

    /** 总经根数 */
    @Excel(name = "总经根数")
    private Integer warpnum;

    public void setAlldataWarping(AlldataWarping alldataWarping){
        this.breakrate = alldataWarping.getBreakrate();
        this.breaknum = alldataWarping.getBreaknum();
        this.curlength = alldataWarping.getCurlength();
        this.setlength = alldataWarping.getSetlength();
        this.density = alldataWarping.getDensity();
        this.pressurea = alldataWarping.getPressurea();
        this.yarncount = alldataWarping.getYarncount();
        this.setspeed = alldataWarping.getSetspeed();
        this.ganopentime = alldataWarping.getGanopentime();
        this.pianopentime = alldataWarping.getPianopentime();
        this.ganlocation = alldataWarping.getGanlocation();
        this.warpnum = alldataWarping.getWarpnum();
    }

    public Double getBwbreakrate() {
        return bwbreakrate;
    }

    public void setBwbreakrate(Double bwbreakrate) {
        this.bwbreakrate = bwbreakrate;
    }

    public String getProductArea() {
        return productArea;
    }

    public void setProductArea(String productArea) {
        this.productArea = productArea;
    }

    public String getBatchNo() {
        return batchNo;
    }

    public void setBatchNo(String batchNo) {
        this.batchNo = batchNo;
    }

    public String getColorNo() {
        return colorNo;
    }

    public void setColorNo(String colorNo) {
        this.colorNo = colorNo;
    }

    public Integer getSetspeed() {
        return setspeed;
    }

    public void setSetspeed(Integer setspeed) {
        this.setspeed = setspeed;
    }

    public Double getAvgSpeed() {
        return avgSpeed;
    }

    public void setAvgSpeed(Double avgSpeed) {
        this.avgSpeed = avgSpeed;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setMaccode(String maccode)
    {
        this.maccode = maccode;
    }

    public String getMaccode()
    {
        return maccode;
    }
    public void setPdtcode(String pdtcode)
    {
        this.pdtcode = pdtcode;
    }

    public String getConstruction() {
        return construction;
    }

    public void setConstruction(String construction) {
        this.construction = construction;
    }

    public String getPdtcode()
    {
        return pdtcode;
    }
    public void setShaftcode(String shaftcode)
    {
        this.shaftcode = shaftcode;
    }

    public String getShaftcode()
    {
        return shaftcode;
    }
    public void setOrdercode(String ordercode)
    {
        this.ordercode = ordercode;
    }

    public String getOrdercode()
    {
        return ordercode;
    }
    public void setShiftdate(Date shiftdate)
    {
        this.shiftdate = shiftdate;
    }

    public Date getShiftdate()
    {
        return shiftdate;
    }
    public void setShifttype(Integer shifttype)
    {
        this.shifttype = shifttype;
    }

    public Integer getShifttype()
    {
        return shifttype;
    }
    public void setIscrossshift(Integer iscrossshift)
    {
        this.iscrossshift = iscrossshift;
    }

    public Integer getIscrossshift()
    {
        return iscrossshift;
    }
    public void setSjtime(Date sjtime)
    {
        this.sjtime = sjtime;
    }

    public Date getSjtime()
    {
        return sjtime;
    }
    public void setLjtime(Date ljtime)
    {
        this.ljtime = ljtime;
    }

    public Date getLjtime()
    {
        return ljtime;
    }
    public void setBeamstatus(Integer beamstatus)
    {
        this.beamstatus = beamstatus;
    }

    public Integer getBeamstatus()
    {
        return beamstatus;
    }
    public void setOpworker(String opworker)
    {
        this.opworker = opworker;
    }

    public String getOpworker()
    {
        return opworker;
    }
    public void setCurlength(Integer curlength)
    {
        this.curlength = curlength;
    }

    public Integer getCurlength()
    {
        return curlength;
    }
    public void setSetlength(Integer setlength)
    {
        this.setlength = setlength;
    }

    public Integer getSetlength()
    {
        return setlength;
    }

    public Integer getBreakrate() {
        return breakrate;
    }

    public void setBreakrate(Integer breakrate) {
        this.breakrate = breakrate;
    }

    public void setBreaknum(Double breaknum)
    {
        this.breaknum = breaknum;
    }

    public Double getBreaknum()
    {
        return breaknum;
    }
    public void setDensity(Integer density)
    {
        this.density = density;
    }

    public Integer getDensity()
    {
        return density;
    }
    public void setPressurea(Integer pressurea)
    {
        this.pressurea = pressurea;
    }

    public Integer getPressurea()
    {
        return pressurea;
    }
    public void setYarncount(Integer yarncount)
    {
        this.yarncount = yarncount;
    }

    public Integer getYarncount()
    {
        return yarncount;
    }
    public void setGanopentime(Integer ganopentime)
    {
        this.ganopentime = ganopentime;
    }

    public Integer getGanopentime()
    {
        return ganopentime;
    }
    public void setPianopentime(Integer pianopentime)
    {
        this.pianopentime = pianopentime;
    }

    public Integer getPianopentime()
    {
        return pianopentime;
    }
    public void setGanlocation(Integer ganlocation)
    {
        this.ganlocation = ganlocation;
    }

    public Integer getGanlocation()
    {
        return ganlocation;
    }
    public void setWarpnum(Integer warpnum)
    {
        this.warpnum = warpnum;
    }

    public Integer getWarpnum()
    {
        return warpnum;
    }



    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("maccode", getMaccode())
            .append("pdtcode", getPdtcode())
            .append("shaftcode", getShaftcode())
            .append("ordercode", getOrdercode())
            .append("shiftdate", getShiftdate())
            .append("shifttype", getShifttype())
            .append("iscrossshift", getIscrossshift())
            .append("sjtime", getSjtime())
            .append("ljtime", getLjtime())
            .append("beamstatus", getBeamstatus())
            .append("opworker", getOpworker())
            .append("curlength", getCurlength())
            .append("setlength", getSetlength())
            .append("breakrate", getBreakrate())
            .append("breaknum", getBreaknum())
            .append("density", getDensity())
            .append("pressurea", getPressurea())
            .append("yarncount", getYarncount())
            .append("ganopentime", getGanopentime())
            .append("pianopentime", getPianopentime())
            .append("ganlocation", getGanlocation())
            .append("warpnum", getWarpnum())
            .append("remark", getRemark())
            .toString();
    }
}
